package top.leyi.IService;

import top.leyi.entity.activity.Activity;
import top.leyi.entity.activity.DetailActivity;
import top.leyi.entity.activity.SimpleActivity;
import top.leyi.entity.user.User;

import java.util.List;

public interface IActivityService {

    public  int LIMIT = 10;

    public List<SimpleActivity> getSimpleActivity(int page);

    public DetailActivity getActivity(int id, User user);

    public void addActivity(Activity activity, User user);

    public void updateActivity(Activity activity, User user);

    public void deleteActivity(Activity activity, User user);

    public DetailActivity joinOrCancelOneActivity(int id, User user);

    public List<DetailActivity> getDetActivity(int page);
}
